	.file	"ptr.c"
	.text
.globl reverse
	.type	reverse, @function
reverse:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$16, %esp
	movl	8(%ebp), %eax
	movl	%eax, -4(%ebp)
	movl	12(%ebp), %eax
	subl	$1, %eax
	sall	$2, %eax
	addl	8(%ebp), %eax
	movl	%eax, -8(%ebp)
	jmp	.L2
.L3:
	movl	-4(%ebp), %eax
	movl	(%eax), %eax
	movl	%eax, -12(%ebp)
	movl	-8(%ebp), %eax
	movl	(%eax), %edx
	movl	-4(%ebp), %eax
	movl	%edx, (%eax)
	movl	-8(%ebp), %eax
	movl	-12(%ebp), %edx
	movl	%edx, (%eax)
	addl	$4, -4(%ebp)
	subl	$4, -8(%ebp)
.L2:
	movl	-4(%ebp), %eax
	cmpl	-8(%ebp), %eax
	jb	.L3
	leave
	ret
	.size	reverse, .-reverse
.globl main
	.type	main, @function
main:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$40, %esp
	movl	$1, -24(%ebp)
	movl	$2, -20(%ebp)
	movl	$3, -16(%ebp)
	movl	$4, -12(%ebp)
	movl	$5, -8(%ebp)
	movl	$6, -4(%ebp)
	movl	$6, 4(%esp)
	leal	-24(%ebp), %eax
	movl	%eax, (%esp)
	call	reverse
	movl	$0, %eax
	leave
	ret
	.size	main, .-main
	.ident	"GCC: (Ubuntu 4.4.1-4ubuntu8) 4.4.1"
	.section	.note.GNU-stack,"",@progbits
